﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class EmployeeTypeBLL
    {
        public DataTable FY(string tableName, int pageIndex)
        {
            return new EmployeeTypeDAL().FY(tableName, pageIndex);
        }

        public DataTable Select(string v)
        {
            return new EmployeeTypeDAL().Select(v);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new EmployeeTypeDAL().SelectNo(tableName, mz);
        }

        public bool Del(string tableName, int id)
        {
            return new EmployeeTypeDAL().Del(tableName, id);
        }

        public EmployeeTypeModel GetModelByID(string tableName, int pid)
        {
            return new EmployeeTypeDAL().GetModelByID(tableName, pid);
        }

        public bool Gai(EmployeeTypeModel model, int pid)
        {
            return new EmployeeTypeDAL().Gai(model, pid); ;
        }

        public bool Add(EmployeeTypeModel model)
        {
            return new EmployeeTypeDAL().Add(model);
        }
    }
}
